﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _112_字典Linq测试
{
    class Program
    {
        static void Main(string[] args)
        {
            Dictionary<int, string> dict = new Dictionary<int, string>();
            dict.Add(1, "123");
            var myValue = dict.Where(k => k.Key == 1).Select(x => x.Value).ToList();
            Console.WriteLine(myValue[0]);

            Console.Read();
        }
    }
}
